<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
		<p:dialog id="categoryPatternCreateDialog"
			header="#{messages.label_create} CategoryPattern" modal="true"
			widgetVar="categoryPatternCreateDialogWidget" dynamic="true"
			visible="#{categoryPatternBean.createDialogVisible}" resizable="true"
			maximizable="true" showEffect="fade" hideEffect="explode"
			appendToBody="true">
			<p:ajax event="close" update=":dataForm:data"
				listener="#{categoryPatternBean.handleDialogClose}" />
			<p:outputPanel id="categoryPatternCreatePanel">
				<h:form id="categoryPatternCreateForm" enctype="multipart/form-data">
					<h:panelGrid id="createPanelGrid" columns="3"
						binding="#{categoryPatternBean.createPanelGrid}"
						styleClass="dialog" columnClasses="col1,col2,col3" />
					<p:commandButton id="createSaveButton"
						value="#{messages.label_save}"
						action="#{categoryPatternBean.persist}"
						update=":categoryPatternDataForm:categoryPatternData :growlForm:growl"
						oncomplete="categoryPatternCreateDialogWidget.hide()" />
					<p:commandButton id="createCloseButton"
						value="#{messages.label_close}"
						onclick="categoryPatternCreateDialogWidget.hide()" type="button" />
				</h:form>
			</p:outputPanel>
		</p:dialog>

</html>